package online.xuping.center.ai;

import cn.hutool.core.collection.ListUtil;
import com.github.artbits.quickio.core.IOEntity;
import lombok.Data;
import org.checkerframework.checker.units.qual.A;

import java.util.ArrayList;
import java.util.List;

/**
 * 类描述:    .
 *
 * @author xuping
 * 创建时间:  [2023/10/27 08:18]
 */
@Data
public class AiChatDomain extends IOEntity {
    List<RoleDomain> messages;
    String answer;

   public    AiChatDomain(){

   }

    public AiChatDomain(String user,String message) {
        this.messages = ListUtil.toList(RoleDomain.builder().role(user).content(message).build());
    }
}

